<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>页面加载顺序</title>
    <script src="./js/jquery-1.42.min.js"></script>
    <script>
        window.onload=function (){
            alert("js界面加载1")
        }
        window.onload=function (){
            alert("js界面加载2")
        }
        $(function (){
            alert("jq界面加载1")
        })
        $(function (){
            alert("jq界面加载2")
        })
    </script>


</head>
<body>

</body>
</html>